/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-05-12     liuchao       the first version
 */
#ifndef DRIVERS_INCLUDE_DRV_BTN_H_
#define DRIVERS_INCLUDE_DRV_BTN_H_
#include "board.h"
#define BTN_PUSH_PIN GET_PIN(G, 2)
#define BTN_BACK_PIN GET_PIN(D, 15)
#define BTN_STOP_MODE_PIN GET_PIN(G, 6)
#define BTN_MONITOR_MODE_PIN GET_PIN(G, 5)
#define BTN_MANUAL_MODE_PIN GET_PIN(G, 4)
#define BTN_AUTO_MODE_PIN GET_PIN(G, 3)

typedef enum
{
    BTN_PUSH, BTN_BACK, BTN_MANUAL, BTN_AUTO
} btn_e;

typedef enum
{
    BTN_STATE_INACTIVE, BTN_STATE_ACTIVE
} btn_state_e;

btn_state_e btn_state(btn_e btn);

#endif /* DRIVERS_INCLUDE_DRV_BTN_H_ */
